import request from '@/utils/request'

// 查询未月结的数据
export function queryFinancialAuditPage(query) {
  return request({
    url: '/financialAuditController/queryFinancialAuditPage',
    method: 'get',
    params: query
  })
}

// 审核通过
export function financialAuditPass(data) {
  return request({
    url: '/financialAuditController/financialAuditPass',
    method: 'post',
    data
  })
}

// 退回
export function financialAuditReject(data) {
  return request({
    url: '/financialAuditController/financialAuditReject',
    method: 'post',
    data
  })
}
// 撤销审核
export function financialAuditRevoke(data) {
  return request({
    url: '/financialAuditController/financialAuditRevoke',
    method: 'post',
    data
  })
}

// 查询新增人数
export function getAddPersonNumByAgencyId(query) {
  return request({
    url: '/agencyVerifyController/getAddPersonNumByAgencyId',
    method: 'get',
    params: query
  })
}

// 查询工资变动人数
export function selectSalaryChangePersonNum(query) {
  return request({
    url: '/agencySalaryController/selectSalaryChangePersonNum',
    method: 'get',
    params: query
  })
}

// 根据单位id判断是否生成工资数据
export function getSalaryDataByAgencyId(query) {
  return request({
    url: '/agencyVerifyController/getSalaryDataByAgencyId',
    method: 'get',
    params: query
  })
}
